package com.star.bookstore.information.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.star.bookstore.common.utils.PageUtils;
import com.star.bookstore.common.utils.Query;

import com.star.bookstore.information.dao.ExceptionDao;
import com.star.bookstore.information.entity.ExceptionEntity;
import com.star.bookstore.information.service.ExceptionService;


@Service("exceptionService")
public class ExceptionServiceImpl extends ServiceImpl<ExceptionDao, ExceptionEntity> implements ExceptionService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ExceptionEntity> page = this.page(
                new Query<ExceptionEntity>().getPage(params),
                new QueryWrapper<ExceptionEntity>()
        );

        return new PageUtils(page);
    }

}